import request from '@/utils/request'

// 查询降雨量列表
export function listRainfall(query) {
  return request({
    url: '/human/rainfall/list',
    method: 'get',
    params: query
  })
}

// 查询降雨量详细
export function getRainfall(id) {
  return request({
    url: '/human/rainfall/' + id,
    method: 'get'
  })
}

// 新增降雨量
export function addRainfall(data) {
  return request({
    url: '/human/rainfall',
    method: 'post',
    data: data
  })
}

// 修改降雨量
export function updateRainfall(data) {
  return request({
    url: '/human/rainfall',
    method: 'put',
    data: data
  })
}

// 删除降雨量
export function delRainfall(id) {
  return request({
    url: '/human/rainfall/' + id,
    method: 'delete'
  })
}
